class Person:
    def __init__(self, name, age):
        # 公有属性
        self.name = name
        # 受保护
        self._age = age

    def get_age(self):
        return self._age


# 类的外部
p1 = Person('python', 10)
print(p1.name)
print(p1._age)

